from game.client.gamestate.gamestate import *

class MainMenuState(GameState):

    def __init__(self):
        GameState.__init__(self)
        self.overlay = 1

    def begin(self, data):
        data.camera.set_mode('nav')

    def resume(self, data):
        data.camera.set_mode('nav')

    def event(self, data, event, ms):
        if event.type == QUIT:
            data.quit_game()
            return
        elif event.type == KEYDOWN:
            if event.key == K_ESCAPE:
                data.state.pop_state(data)

        data.gui.event(event, ms)

    def update(self, data, ms):
        data.gui.update(ms)

    def draw(self, data):
        data.gui.blah()
        data.gui.draw()